<html>﻿<!DOCTYPE html>
<html>
<head>
    <style>
        p {
            height: 30px;
            width: 150px;
            background-color: #ccf;
        }

        div {
            height: 30px;
            width: 150px;
            background-color: #cfc;
        }
    </style>

    <script src="../../../../../../../g.tbcdn.cn/kissy/k/1.3.2/seed.js" tppabs="http://g.tbcdn.cn/kissy/k/1.3.2/seed.js" data-config="{combine:true}"></script>
</head>
<body>
<p>paragraph</p>

<div>division</div>
<script>
    KISSY.use('core', function (S) {
        var $ = KISSY.Node.all;
        $("p").on('click', function (event) {
            event.stopImmediatePropagation();
        });
        $("p").on('click', function (event) {
            // This function won't be executed
            $(this).css("background-color", "#f00");
        });
        $("div").on('click', function (event) {
            // This function will be executed
            $(this).css("background-color", "#f00");
        });
    });
</script>

</body>
</html>